package com.zmq.service.user.impl;

import com.zmq.bean.UserBean;
import com.zmq.dao.IUserDao;
import com.zmq.service.user.IUserService;
import com.zmq.utils.SnowflakeId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    @Override
    public String addUser(UserBean userBean) {
        //添加雪花ID
        userBean.setId(String.valueOf(new SnowflakeId(1, 1).nextId()));
        //userBean.setRole("0");
        //userDao.addUser(userBean);
        return null;
    }

    @Override
    public int deleteUser(UserBean userBean) {
        return 0;
    }

    @Override
    public int updateUser(UserBean userBean) {
        return 0;
    }

    @Override
    public UserBean queryUserById(String id) {
        return null;
    }
}
